<?php

session_start();
if (isset($_SESSION["login_time"])) {
    $expireTime = $_SESSION["login_time"] + $_SESSION["timeout"];

    if ($expireTime <= time()) {        
        header('Location: logout.php');
    }
}
?>
